package com.mjh.zhujianju.service.set;

import java.util.List;

import com.livew.framework.base.service.BaseService;
import com.livew.framework.exception.XTBusinessException;
import com.livew.framework.page.PagedResult;
import com.mjh.zhujianju.model.set.AnnouncementEO;
import com.mjh.zhujianju.vo.set.AnnouncementVO;

/**
 * @author liuyang
 * @Description: 公告
 * @date 2018/8/8 22:19
 */
public interface AnnouncementService extends BaseService<AnnouncementEO> {

    /**
     * wx-首页展示，只需一条
     * @return
     */
    List<AnnouncementEO> queryAnnouncementNewOne();

    /**
     * wx-公告列表
     * @return
     */
    List<AnnouncementVO> queryAnnouncementList();

    /**
     * wx-公告详情
     * @param id
     * @return
     */
    AnnouncementVO queryAnnouncementInfo(Long id);
    
    
    
    /**
     * 保存
     * @param vo
     * @throws XTBusinessException
     */
	void saveInfo(AnnouncementVO vo) throws XTBusinessException;

	
	/**
	 * 更新
	 * @param vo
	 * @throws XTBusinessException
	 */
	void updateInfo(AnnouncementVO vo)throws XTBusinessException;


	/**
	 * 查询
	 * @param vo
	 * @throws XTBusinessException
	 */
	AnnouncementVO getInfo(Long id) throws XTBusinessException;


	/**
	 * 查询
	 * @param vo
	 * @throws XTBusinessException
	 */
	PagedResult<AnnouncementVO> getVOPage(AnnouncementVO eo);


}
